package net.andersand.games.yatzy;

public class Score {

	private ScoreType type;
	
	/**
	 * The value is set when a player chooses a score type for his 
	 * resulting dice after turn complete
	 */
	private int value = 0;
	
	/**
	 * PlayerID is used by the frame to get columnIndex
	 * Maybe not the best way to do it...
	 */
	private int playerID = -1;
	
	public Score(ScoreType type) {
		this.type = type;
	}
	
	void setValue(int value) {
		this.value = value;
	}
	
	int getValue() {
		return value;
	}
	
	void setPlayerID(int playerID) {
		this.playerID = playerID;
	}
	
	int getPlayerID() {
		return playerID;
	}

	ScoreType getType() {
		return type;
	}
}
